/*
 * @Description:
 * @Author: py
 * @Date: 2024-07-30
 */
import { reactive } from 'vue'

export function useTable() {
    const gridOptions = reactive<any>({
        align: 'center',
        border: true,
        columnConfig: {
            resizable: true,
        },
        columns: [
            { field: 'commentCode', title: '评价编号' },
            { field: 'companyName', title: '商家信息' },
            { field: 'orderCode', title: '订单编号' },
            { slots: { default: 'textImgEva' }, title: '图文评价', width: 200 },
            { field: 'createTime', title: '评价时间', width: 100 },
            { slots: { default: 'goodsInfo' }, title: '商品信息', width: 200 },
            { slots: { default: 'userInfo' }, title: '用户信息' },
            { slots: { default: 'evaLevel' }, title: '评价星级', width: 130 },
            { slots: { default: 'status' }, title: '状态', width: 70 },
            { slots: { default: 'operate' }, title: '操作', width: 150 },
        ],
        data: [],
        height: 530,
        loading: false,
        showOverflow: false,
    })

    return { gridOptions }
}
